package com.sc.nft.config.chain;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@Slf4j
public class BlockChainClientInit {

    @Value("${metachain.rpcAddr:}")
    private String rpcAddr;

    @Value("${metachain.nThreads:}")
    private int nThreads;



    @PostConstruct
    public void ChainClientConfig() throws Exception {
        ChainClientConfig.rpcAddr = rpcAddr;
        ChainClientConfig.nThreads = nThreads;
    }
}
